package com.example.myapplication22.entity;

import java.util.Date;
//存放日记
public class Info {
    private int _id;
    private String userId;
    private String title;//标题
    private String content;//内容
    private String week;//星期几
    private Date date;//日期
    private int state;//状态0未删除 ，1删除


    public Info() {
    }

    public Info(String userId, String title, String content, String week, Date date) {
        this.userId = userId;
        this.title = title;
        this.content = content;
        this.week = week;
        this.date = date;
    }

    public Info(String userId, String title, String content, String week, Date date, int state) {
        this.userId = userId;
        this.title = title;
        this.content = content;
        this.week = week;
        this.date = date;
        this.state = state;
    }


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Info{" +
                "_id=" + _id +
                ", userId='" + userId + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", week='" + week + '\'' +
                ", date=" + date +
                ", state=" + state +
                '}';
    }



    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

}
